package com.gbr.screenrecorder;

import java.awt.Rectangle;

import javafx.geometry.Rectangle2D;

public class Utilities {
	public static Rectangle toAwtRectangle(Rectangle2D r) {
		return new Rectangle((int) Math.round(r.getMinX()), 
				(int) Math.round(r.getMinY()), 
				(int) Math.round(r.getWidth()), 
				(int) Math.round(r.getHeight()));
	}
}
